package scope

import "gorm.io/gorm"

func NotDeleted(db *gorm.DB) *gorm.DB {
	return db.Where("is_delete = 0")
}

func SoftDelete(db *gorm.DB) *gorm.DB {
	return db.Update("is_delete", 1)
}
